package com.ivc.trade.dto.base;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

import com.cs.framework.common.annotation.NotNull;
import com.cs.framework.common.bo.BoBase;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 销售信息
 * 
 * @author hedongzhou
 * 
 */
@Entity
@Table(name = "sell_info")
public class SellInfoDto extends BoBase {

	private static final long serialVersionUID = -470164254108400852L;

	/**
	 * 销售信息编号
	 */
	@Id
	@GeneratedValue(generator = "sellInfoGenerator")
	@GenericGenerator(name = "sellInfoGenerator", strategy = "increment")
	@Column(name = "sell_order_no")
	private Long sellInfoNo;

	/**
	 * 客户编号
	 */
	@Column(name = "client_no")
	@NotNull("客户编号")
	private String clientNo;

	/**
	 * 供应商编号
	 */
	@Column(name = "supplier_no")
	@NotNull("供应商编号")
	private String supplierNo;

	/**
	 * 商品编号
	 */
	@Column(name = "product_no")
	@NotNull("商品编号")
	private String productNo;

	/**
	 * 数量
	 */
	@Column(name = "quantity")
	@NotNull("数量")
	private Integer quantity;

	/**
	 * 单价
	 */
	@Column(name = "unit_price")
	@NotNull("单价")
	private Double unitPrice;

	/**
	 * 申请日期
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@Column(name = "apply_date")
	@NotNull("申请日期")
	private Date applyDate;

	public Long getSellInfoNo() {
		return sellInfoNo;
	}

	public void setSellInfoNo(Long sellInfoNo) {
		this.sellInfoNo = sellInfoNo;
	}

	public String getClientNo() {
		return clientNo;
	}

	public void setClientNo(String clientNo) {
		this.clientNo = clientNo;
	}

	public String getSupplierNo() {
		return supplierNo;
	}

	public void setSupplierNo(String supplierNo) {
		this.supplierNo = supplierNo;
	}

	public String getProductNo() {
		return productNo;
	}

	public void setProductNo(String productNo) {
		this.productNo = productNo;
	}

	public Integer getQuantity() {
		return quantity;
	}

	public void setQuantity(Integer quantity) {
		this.quantity = quantity;
	}

	public Double getUnitPrice() {
		return unitPrice;
	}

	public void setUnitPrice(Double unitPrice) {
		this.unitPrice = unitPrice;
	}

	public Date getApplyDate() {
		return applyDate;
	}

	public void setApplyDate(Date applyDate) {
		this.applyDate = applyDate;
	}

}
